package com.jerry.api.controller;

import com.jerry.api.common.PageUtils;
import com.jerry.api.common.Query;
import com.jerry.api.common.R;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.Map;


/**
 * 系统日志
 * 
 * @author jerry
 * @email 670809626@qq.com
 * @date 2017-03-08 10:40:56
 */
@Controller
@RequestMapping("/sys/log")
public class SysLogController {

	/**
	 * 列表
	 */
	@ResponseBody
	@RequestMapping("/list")
	public R list(@RequestParam Map<String, Object> params) throws Exception {
		//查询列表数据
		Query query = new Query(params);
		PageUtils pageUtil = new PageUtils(null, 0, query.getLimit(), query.getPage());
		return R.ok().put("page", pageUtil);
	}
	
}
